'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const auth = app.middleware.auth({title:"中间件"})	//导入中间件
  const { router, controller } = app;
  router.get('/',auth, controller.home.index);
  router.get('/detail', controller.detail.index);
  router.get('/movie', controller.movie.index);
  router.get('/article', controller.article.index);
  router.get('/render', controller.render.index)
};